aboutsummaryrefslogtreecommitdiff
path: root/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.shidtopatio.ShidToPatioIfTests]/[method:canGenerateCodeForIfWithNoResults(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
blob: 7073d21301d32e3df5b6925a2d34787c1146683b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
Compilation unit elements:

(
    function-decl
    "shed__runtime__int_create"
    params=((param "value" int))
    return-type=int
)

Locals:
 * (val "tmp__conditionInt__0" int)
 * (val "tmp__conditionBool__0" bool)
 * (val "int__0" int)
 * (val "int__1" int)

Instructions:

(
    (local-store (local "tmp__conditionInt__0") (local "condition"))
    (int-to-bool (local "tmp__conditionBool__0") (local "tmp__conditionInt__0"))
    (
        if
        ()
        (local "tmp__conditionBool__0")
        (
            block
            (
                (call (local "int__0") "shed__runtime__int_create" ((int-const 1)))
            )
            results=()
        )
        (
            block
            (
                (call (local "int__1") "shed__runtime__int_create" ((int-const 101)))
            )
            results=()
        )
    )
)

Temporary stack:
 * PatioLocalRef[name=other]